<include file="__THEME__/header" />
<link href="../Public/css/photo.css" rel="stylesheet" type="text/css" />
<!-- 头部 end -->
<div class="content"><!-- 内容 begin  -->
	<include file="__THEME__/apps" />
	<div class="main"> <!-- 右侧内容 begin  -->

		<div class="page_title"> <!-- page_title begin -->
			<!-- 看别人的{$APPINFO['APP_CNNAME']}时显示  -->
			<if condition=" $mid neq $uid">
			<div class="left" style="width:70px;">
				<span class="headpic50"><a href="__TS__/space/{$user.id}"><img src="{$user.id|getUserFace}" /></a></span>
			</div>
			<div class="left" style="width:650px;">
				<h2>{$user.name}的{$APPINFO['APP_CNNAME']}</h2>
				<p><a href="__TS__/space/{$user.id}">{$user.name}的空间</a> ┊ <a href="__TS__/Notify/write/uid/{$user.id}">发站内信</a></p>
			</div>
			<div class="left alR lh30" style="width:100px;"><a href="javascript:window.history.back(-1)">返回上一页</a></div>
			<else />
			<h2><img src="../Public/images/ico_app02.gif" />{$APPINFO['APP_CNNAME']}</h2>
			</if>
		<div class="c"></div>
</div><!-- page_title end -->	

		<div class="tab-menu"><!-- 切换标签 begin  -->
			<ul>
				<!-- 看别人的{$APPINFO['APP_CNNAME']}时显示  -->
			    <if condition=" $mid neq $uid">
					<li><a href="__APP__/Index/photos/uid/{$uid}" class="on"><span>{$uid|getUserName}的照片</span></a></li>
				<else />
				<li><a href="__APP__/Index/friends_photos"><span>好友的照片</span></a></li>
				<li><a href="__APP__/Index/photos/uid/{$mid}" class="on"><span>我的照片</span></a></li>
				<li><a href="__APP__/Index/all_photos"><span>大家的照片</span></a></li>
                <li><a href="__APP__/Upload/flash"><span><div class="ico_add">&nbsp;</div>上传照片</span></a></li>
				</if>
            </ul>
		</div><!-- 切换标签 end  -->

		<div class="photoBox">
			<div class="MenuSub"> <a href="__URL__/photos/uid/{$uid}">{$user.name}的全部照片</a> ┊ {$user.name}的相册({$data.count}) ┊
			         <a href="__URL__/photos/order/readCount">最多观看</a> ┊ 
                    <a href="__URL__/photos/order/commentCount/">最多回应</a>
			<!--  ┊ <a href="__URL__/marked/uid/{$uid}">圈有{$user.name}的{$APPINFO['APP_CNNAME']}</a>  --></div>

			<div class="albumlist">
  			<ul>
			<volist name="data.data" id="li">
			<li class="bg04">
			<div class="box">
				<div class="c1"><span class="photo140"><a href="__APP__/Index/album/id/{$li.id}/uid/{$li.userId}"><img src="{$li.id|get_album_cover}" alt="{$li.name}" /></a></span></div>
				<div class="c2">
				<dl>
					<dt>
						<span class="right">
							<eq name="li.share" value="1">
							<input type="button" value="分享" class="BtnShare" onclick="sharePop('{$li.id}','__URL__','album')" id="BtnShare_{$li.id}"/>
							</eq>
						</span>
						<a href="__APP__/Index/album/id/{$li.id}/uid/{$li.userId}" class="OverH" style="width:140px; display:block;"><strong>{$li.name}</strong></a>
					</dt>
                    <if condition=" $mid neq $uid"><dd><a href="__TS__/space/{$li.userId}">{$user.name}</a></dd></if>
					<dd>共{$li.photoCount}张</dd>
					<dd>{$li.mTime|friendlyDate}更新</dd>
					<dd><php>if(in_array($li['privacy'],array('2','3','4'))){</php><img src="../Public/images/photo_ico_bgk.gif" width="13" height="12" />&nbsp;<php>}</php><em>{:date('Y年m月d日',$li['cTime'])}创建</em></dd>
					<dd>
						<if condition=" $mid eq $uid">
						<a href="__APP__/Manage/album_edit/id/{$li.id}/uid/{$li.userId}">编辑该相册</a>
						</if>
					</dd>
				</dl>
				</div>
			</div>
			</li>
			</volist>
			</ul>
			</div>
		</div>
		<div style="clear:both">&nbsp;</div>
		<div class="page">{$data.html}</div>  </div><!-- 右侧内容 end  -->
  <div class="c"></div>
</div><!-- 内容 end -->
<include file="__THEME__/footer" />
<script src="../Public/js/album.js" type="text/javascript"></script>
<script>
function sharePop(id,url,type){
	var classId = '#BtnShare_'+id;
	$(classId).attr('disabled','true');

	$.post(url+"/addShare_check/", {aimId:id,type:type}, function(txt){
		   if(txt==1){
			   ymPrompt.win(url+'/addShare/aimId/'+id+'/type/'+type,500,'315','分享',null,null,null,{id:'a'});
		   }else if(txt==-1){
			   ymPrompt.errorInfo('请不要分享自己发布的东西!');
		   }else if(txt==-2){
			   ymPrompt.errorInfo('您已经分享过,请不要重复分享!');
		   }else if(txt==-3){
			   ymPrompt.errorInfo('您没有权限分享!');
		   }else{
			   ymPrompt.errorInfo('参数出错,请重试!');
		   }
		   
		   $(classId).attr('disabled','');
	});
}
</script>